var isSteelExtension = true;
var consoleService = null;

function logWithoutSteel(log) {
	if (consoleService == null) {
		consoleService = getConsoleService();
	}
	consoleService.logStringMessage(log);
}

function logWithSteel(log) {
	Application.console.log(log);
}


function log(log) {
	if (isSteelExtension) {
		logWithSteel(log);
	} else {
		logWithoutSteel(log);
	}
}

function openConsole() {
	if (isSteelExtension) {
		Application.console.open();
	}
}

function resetConsole() {
	if (!isSteelExtension) {
		if (consoleService == null) {
			consoleService = getConsoleService();
		}
		consoleService.reset();
	}	
}

function dumpObject(object) {
	for(var e in object) {
		log(e);
	}
}